home *** CD-ROM | disk | FTP | other *** search
- Path: news.uiowa.edu!usenet
- From: larued@crpl.cedar-rapids.lib.ia.us
- Newsgroups: comp.lang.c++
- Subject: Re: Designing C++ programs
- Date: 24 Mar 1996 09:37:31 GMT
- Organization: University of Iowa, Iowa City, IA, USA
- Distribution: world
- Message-ID: <4j354r$1crg@flood.weeg.uiowa.edu>
- References: <DorAzA.8pK@rci.ripco.com>
- Reply-To: larued@crpl.cedar-rapids.lib.ia.us
- NNTP-Posting-Host: ppp-106.cedar-rapids.lib.ia.us
- X-Newsreader: IBM NewsReader/2 v1.9d - NLS
-
- In <DorAzA.8pK@rci.ripco.com>, tears@ripco.com (Zia Khan) writes:
- >
- >Does anyone have any suggestions as far as approaching the design and analysis
- >aspect of programming ... more specifically in c++
- >
- > Zia Khan
- >
- I would suggest picking a few relatively simple problems to solve and going
- through the motions of OOD and OOA. Geting the mind used to thinking in
- terms of objects and actions is the first step. Then change your focus to
- the problems and environment you wish to solve it in. What composes this
- world? What objects are there? What common characteristics do objects have?
- Are these generalizations correct? Are these ideas generic enough to represent
- other objects? Are the solutions too specific or too general? Now that there
- is a model for the real world what knowledge have I gained and how can it be
- put to further use?
-
- Just a few ideas to ponder.
-
- Specific to C++ I would suggest addressing the thought patterns of programmers
- who already know C. Their definition of classes and methods are close to
- correct but incomplete. The design methods are different. Retraining thoughts
- are important for good designs and implementations. C++, and OO in general,
- has a different focus than other languages. Procedural languages naturally
- allow you to go about solving a problem in the fastest way possible. Steps can
- be left out and added later. This is not as easily done in OO terms; at least
- it should not be treeated as such. An OO approach requires entire classes to
- be built which represent some useful idea. More development and thought is
- required up front but the latent benefits are great. The more useful benefits,
- IMHO, are the ones that you did not expect to solve but were able to reuse the
- code for.
-
- I hope this follows some of the ideas you were wishing to discuss. There are
- several good OOD and OOA books out. I find many of them at Barnes and Noble.
-
- David LaRue
- Team OS/2, ACM, IEEE
-